package com.example.doctor.jpa;

import com.example.common.entity.QuestionMain;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

public interface QuestionMainRepository extends JpaRepository<QuestionMain,Long> {

    @Query(value = "SELECT * FROM h_question_main WHERE tid_bigint=?1",nativeQuery = true)
    QuestionMain findbyDcId(Long tid);
}
